package com.lizhi.yun.core.controller;

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.core.handler.ServiceJlcPatientInfoHandlerNew;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/10/27 14:55
 */
@RefreshScope
@RestController
@RequestMapping(path = "/api/jlc/yun/patientInfo")
@Api("经颅磁患者信息")
public class ServiceJlcPatinentInfoController {

    @Resource
    private ServiceJlcPatientInfoHandlerNew jlcPatientInfoHandler;

//    @ApiOperation("通过map查询患者信息")
//    @PostMapping(path = "/doMain")
//    public ListResponseResult doMain(@RequestBody String json){
//        return jlcPatientInfoHandler.doMain(json);
//    }

    @ApiOperation("通过map查询患者信息")
    @PostMapping(path = "/doMain")
    public ListResponseResult doMap(@RequestParam Map<String, Object> map){
        return jlcPatientInfoHandler.doMain(map);
    }

}
